//
//  LDTCollectionViewCell.m
//  EPA
//
//  Created by lanou3g on 16/4/19.
//  Copyright © 2016年 浮夸. All rights reserved.
//

#import "LDTCollectionViewCell.h"

@interface LDTCollectionViewCell()

@property (weak, nonatomic) IBOutlet UIImageView *imageView;


@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@property (weak, nonatomic) IBOutlet UILabel *unnameLabel;


@end


@implementation LDTCollectionViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setModel:(LDTHomeModel *)model
{
    if (_model != model) {
        _model  = model;
    }
}

- (void)layoutSubviews
{
    [self.imageView addSubview:self.titleLabel];
    self.titleLabel.textColor = [UIColor whiteColor];
    self.titleLabel.text = self.model.name;
    [self.imageView sd_setImageWithURL:[NSURL URLWithString:self.model.coverimg]];
    self.unnameLabel.text = self.model.enname;
    self.unnameLabel.textColor = [UIColor whiteColor];
}



@end
